package org.example.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "用户模型")
public class User {
    @ApiModelProperty(value = "用户ID", required = true, example = "10")
    private Long id;

    @ApiModelProperty(value = "用户名", required = true, example = "张辽")
    private String username;

    @ApiModelProperty(value = "用户邮箱", required = true, example = "www.abc.com")
    private String email;

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
